package test.pcs;

import com.payment.lc.pcs.client.wrap.bo.ProductionALLAttributes;
import com.payment.lc.pcs.client.wrap.bo.ProductionValueAttributes;
import com.payment.lc.pcs.client.wrap.service.ProductionWrapService;
import com.payment.lc.pcs.service.api.AppSettingService;
import com.payment.lc.pcs.service.api.DynamicDataService;
import com.payment.lc.pcs.service.api.ProductionService;
import com.payment.lc.pcs.service.api.ProductionServiceV20;
import com.payment.lc.pcs.service.domain.Bank;
import com.payment.lc.pcs.service.domain.ListWrapper;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import test.BaseTest;

/**
 * Created on 2016/8/8.
 */
public class Demo1PcsTest8 extends BaseTest {

    @Autowired
    ProductionServiceV20 productionServiceV20;

    @Autowired
    ProductionService productionService;

    @Autowired
    ProductionWrapService productionWrapService;

    @Autowired
    DynamicDataService dynamicDataService;

    @Autowired
    AppSettingService appSettingService;

    @Test
    public void test() {
        test5();
    }

    void test5() {
        ListWrapper<Bank> allBank = appSettingService.getAllBank();
        display(allBank);
    }
    void test1() {
//        ListWrapper<String> codes = productionServiceV20.getProdCodesByCategoryDisplayType(MiProductCategory.Dingqi, DisplayType.Down);
//        display(codes);
//
//        Production production = productionService.getProduction("FI16011");
//        display(production);
//
//        ProductionTimeAttributes timeAttributes = productionWrapService.getProductionTimeAttributes(productionWrapService.getProduction("SF2883"));
//        display(timeAttributes);

        ProductionValueAttributes valueAttributes = productionWrapService.getProductionValueAttributes(productionWrapService.getProduction("SF2883"));
        display(valueAttributes);
    }
}
